package com.xuxin.baby.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.xuxin.baby.R;
import com.xuxin.baby.bean.KeywordsBean;

import org.jetbrains.annotations.NotNull;

/**
 * Created by xu_xin
 * Created on 2020.08.28 0028
 * 搜索热门
 */
public class SearchHotAdapter extends BaseQuickAdapter<KeywordsBean.ResultBean.ItemsBean, BaseViewHolder> {

    public SearchHotAdapter() {
        super(R.layout.item_search_hot);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, KeywordsBean.ResultBean.ItemsBean item) {
        holder.setText(R.id.item_search_hot_name, item.getKeyword());
    }
}